Your module-level code exceeds QuickBASIC's internal limit. Try moving some of the code into SUB or FUNCTION procedures.